package com.whz.method;

/**
 * @Author: sinosoft
 * @Description: 奶酪
 * @Date: Create in 11:16 2021/5/24
 * @Modified By:
 */
public class Cheese {
    private final Integer weight;

    private Cheese(Integer weight) {
        this.weight = weight;
    }

    public static Cheese make(Integer weight) {
        return new Cheese(weight);
    }

    @Override
    public String toString() {
        return "重量为" + weight + "克的奶酪";
    }
}
